package org.wlw.test03;

public class TestComputer {
    public static void main(String[] args) {
        CPU cpu = new Intel("酷睿","i7");
        CPU cpu2 = new AMD("毒龙","A88");
        VideoCard videoCard = new Nvidia("Nvidia 七彩虹","3060(8M)");
        MainBoard mb = new MainBoard();
        videoCard = new Intel("Intel AX","9988");
        mb.name = "华硕 A9099";
        mb.cpu = cpu;
        mb.videoCard = videoCard;
        mb.cpu = cpu2;
        mb.powerOn();
    }
}
